<h1>Listing records</h1>

<table>
  <tr>
    <th>Date</th>
    <th>Length</th>
    <th>Project</th>
    <th>Task</th>
    <th>Employee</th>
  </tr>

<% @records.each do |record| %>
  <tr>
    <td><%=h record.date %></td>
    <td><%=h record.length %></td>
    <td><%=h record.project_id %></td>
    <td><%=h record.task_id %></td>
    <td><%=h record.project_id %></td>
    <td><%= link_to 'Show', record %></td>
    <td><%= link_to 'Edit', edit_record_path(record) %></td>
    <td><%= link_to 'Destroy', record, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New record', new_record_path %>